package com.zxl.designpattern.creator.factory.abstractpattern;

import com.zxl.designpattern.creator.factory.pojo.Laptop;
import com.zxl.designpattern.creator.factory.pojo.Phone;
import com.zxl.designpattern.creator.factory.pojo.XiaomiLaptop;
import com.zxl.designpattern.creator.factory.pojo.XiaomiPhone;

/**
 * @author zxl
 * @version 1.0
 * @description 小米工厂
 * @date 2025/5/31 20:14
 */
public class XiaomiFactory implements IAbstractFactory{
    @Override
    public Phone createPhone() {
        return new XiaomiPhone();
    }

    @Override
    public Laptop createLaptop() {
        return new XiaomiLaptop();
    }
}
